package com.example.day1504;

/**
 * @author Lenovo
 */
public class GenericDemo {
    public static void main(String[] args) {
        Generic g1 = new Generic<String>();
        g1.setT("hello");
        System.out.println(g1.getT());
        Generic <Integer> g2 = new Generic<Integer>();
        g2.setT(100);
        System.out.println(g2.getT());
        Generic <Boolean> g3 = new Generic<Boolean>();
        g3.setT(true);
        System.out.println(g3.getT());
    }
}
